Unfortunately, Matplotlib does not make this easy: via the standard legend interface, it is only possible to create a single legend for the entire plot. If you ... ... <看更多>
However, when I call set_alpha on a legend handle, the color of the patch in the legend changes. Code for reproduction. import matplotlib.pyplot ... ... <看更多>